Skip to content

Add FXIOS-13851 [Japan MSCA] Add Firefox Japanese Guide deafult site#30384

Merged
Foxbolts merged 7 commits intomainfrom
fb/FXIOS-13851_firefox-jp-guide-deafult-site
Nov 6, 2025
Merged

Add FXIOS-13851 [Japan MSCA] Add Firefox Japanese Guide deafult site#30384
Foxbolts merged 7 commits intomainfrom
fb/FXIOS-13851_firefox-jp-guide-deafult-site

Conversation

@Foxbolts
Copy link
Collaborator

@Foxbolts Foxbolts commented Nov 5, 2025

📜 Tickets

Jira ticket
Github issue

💡 Description

  • Add the Firefox Japanese Guide as a default site for the ja_JP locale
  • Reorder ja_JP locale default site order so that Yahoo comes before Ambelo

🎥 Demos

Simulator Screenshot - iPhone 17 - 2025-11-04 at 19 13 45

📝 Checklist

  • I filled in the ticket numbers and a description of my work
  • I updated the PR name to follow our PR naming guidelines
  • I ensured unit tests pass and wrote tests for new code
  • If working on UI, I checked and implemented accessibility (Dynamic Text and VoiceOver)
  • If adding telemetry, I read the data stewardship requirements and will request a data review
  • If adding or modifying strings, I read the guidelines and will request a string review from l10n
  • If needed, I updated documentation and added comments to complex code

@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Nov 5, 2025

Messages
📖 Project coverage: 37.92%

🥇 Perfect PR size

Smaller PRs are easier to review. Thanks for making life easy for reviewers! ✨

✅ Per-file coverage

All changed files meet the threshold of 35.0%.

Client.app: Coverage: 37.15

File Coverage
NimbusFlaggableFeature.swift 95.6%
TopSitesProvider.swift 94.35%
NimbusFeatureFlagLayer.swift 77.27%

libStorage.a: Coverage: 55.68

File Coverage
DefaultSuggestedSites.swift 90.91%

Generated by 🚫 Danger Swift against 3446fd4

@Foxbolts Foxbolts requested a review from ih-codes November 6, 2025 16:46
@Foxbolts Foxbolts marked this pull request as ready for review November 6, 2025 16:47
@Foxbolts Foxbolts requested a review from a team as a code owner November 6, 2025 16:47
if shouldExcludeFirefoxJpGuide() {
/// Assumes the Firefox Japanese Guide is the first default site in the list in the `ja_JP` locale in
/// `DefaultSuggestedSites.swift`
suggested.remove(at: 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we search and remove to be safer, maybe key on the title or URL or something? 👀

return suggested.filter({ deleted.firstIndex(of: $0.url) == .none })
}

private func shouldExcludeFirefoxJpGuide() -> Bool {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit; This could probably be a getter var since the method doesn't include params.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, one more thing. I used ImageOptim to compress this losslessly down to 15 KB. I'll DM you the asset! 👀

@Foxbolts Foxbolts requested a review from ih-codes November 6, 2025 17:55
Copy link
Collaborator

@ih-codes ih-codes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

Comment on lines +85 to +90
if shouldExcludeFirefoxJpGuide {
// Remove the Firefox Japanese Guide from the list of default sites
suggested.removeAll {
$0.url == DefaultSuggestedSites.firefoxJpGuideURL
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@Foxbolts Foxbolts merged commit 5796450 into main Nov 6, 2025
11 checks passed
@Foxbolts Foxbolts deleted the fb/FXIOS-13851_firefox-jp-guide-deafult-site branch November 6, 2025 18:48
@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

🚀 PR merged to main, targeting version: 145.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants